TxnIterator

class TxnIterator @JvmOverloads constructor(txns: TransactionSet, filter: TxnSearch? = null) : MutableIterator<Txn>

A TxnIterator is an iterator that scans both sides of all transactions, treating split transactions as N*2 transactions where N is the number of SplitTxns associated with the ParentTxn. This iterator should be used for all reporting tasks as it scans Txns in their most generic form.

Author

sreilly

Since

Moneydance build 745

Constructors

Link copied to clipboard
constructor(txns: TransactionSet, filter: TxnSearch? = null)

Functions

Link copied to clipboard
open operator override fun hasNext(): Boolean

Return whether there are any Txns remaining

Link copied to clipboard
open operator override fun next(): Txn
Link copied to clipboard
open override fun remove()